add_definitions(-DCROSS_COMPILE)

if(CLR_CMAKE_HOST_ARCH_AMD64 AND CLR_CMAKE_TARGET_ARCH_ARM)
    set(FEATURE_CROSSBITNESS 1)
endif(CLR_CMAKE_HOST_ARCH_AMD64 AND CLR_CMAKE_TARGET_ARCH_ARM)

if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
    set (CLR_CROSS_COMPONENTS_LIST
        crossgen
        clrjit
    )
endif()

if(NOT CLR_CMAKE_HOST_LINUX AND NOT FEATURE_CROSSBITNESS)
    list (APPEND CLR_CROSS_COMPONENTS_LIST
        mscordaccore
    )
    if (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
        list (APPEND CLR_CROSS_COMPONENTS_LIST
            mscordbi
        )
    endif (CLR_CMAKE_HOST_OS STREQUAL CLR_CMAKE_TARGET_OS)
endif()
